package com.shaw.tiger;

public class AbstractFactoryPatternDemo {

	public static void main(String[] args) {
		abstractFactory shapeFactory = FactoryProducer.getFactory("SHAPE");
		Shape shape1 = shapeFactory.getShape("Circle");
		shape1.draw();
		Shape shape2 = shapeFactory.getShape("Rectangle");
		shape2.draw();
		Shape shape3 = shapeFactory.getShape("Square");
		shape3.draw();
		
		abstractFactory colorFactory = FactoryProducer.getFactory("COLOR");
		Color color1 =colorFactory.getColor("RED");
		color1.fill();
		Color color2 =colorFactory.getColor("GREEN");
				color2.fill();
		Color color3=colorFactory.getColor("BLUE");
		color3.fill();
	}
}
